home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7929 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: info.uci.kun.nl!news
  2. From: Flop <mooij@dds.nl>
  3. Newsgroups: comp.lang.c++
  4. Subject: HELP:  interrupt keyword in Borland C++ 4.02
  5. Date: Wed, 14 Feb 1996 22:25:34 +0100
  6. Organization: Universitair Centrum Informatievoorziening, The Netherlands
  7. Message-ID: <3122534E.219C@dds.nl>
  8. NNTP-Posting-Host: pstn01.extern.kun.nl
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (Win95; I)
  13.  
  14. Hi all!
  15.  
  16. I use BCC32.EXE of Borland C++ 4.02.
  17. But this compiler doesn't seem to know
  18. the keyword 'interrupt'. Is this keyword
  19. removed in the newer versions of Borland
  20. C++ or is it just renamed?
  21.  
  22. In fact I don't need 'interrupt', I can also 
  23. do it this way:
  24.  
  25. void Handler(...)
  26.   {
  27.     asm pushad
  28.  
  29.     asm popad
  30.     asm iretd
  31.   }
  32.  
  33. But then, BCC generates the folowing code:
  34.  
  35. _Handler:
  36.   push ebp <--- I don't want this instruction, it causes Page Faults ;-)
  37.   pushad
  38.   popad
  39.   iretd
  40.   pop ebp    
  41.   ret       
  42.  
  43. Is there any way to prevent BCC from generating the 'push ebp'
  44. code? 
  45.  
  46. All your help is appreciated.
  47. Thanks in advance,
  48.  
  49. Joris
  50.